package com.industry.oss.service;


import com.industry.framework.common.Result;
import com.industry.oss.controller.vo.FileUploadInfoVO;
import com.industry.oss.dal.dataobject.Files;
import com.industry.oss.controller.vo.UploadUrlsVO;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.http.ResponseEntity;

import java.util.List;


public interface FilesService {

    Result<FileUploadInfoVO> checkFileByMd5(String md5);

    Result<UploadUrlsVO> initMultipartUpload(FileUploadInfoVO fileUploadInfoVO);

    Result<String> mergeMultipartUpload(String md5);

    Result<byte[]> downloadMultipartFile(Long id, HttpServletRequest request, HttpServletResponse response) throws Exception;

    List<Files> getFileList();
}
